Skip to contentSkip to conversation

Moving OP-TEE support from meta-arm to oe-core

RFC Thomas Perrot 7 participants 8 messages Jan 22 – Mar 31

lore
Share & tools
lore
#0 lore raw

Hi,

Currently, OP-TEE support is maintained in the meta-arm layer. However, OP-TEE is now being adopted by non-ARM platforms as well, notably RISC- V.

Given this broader adoption, would it make sense to move the OP-TEE recipes from meta-arm to oe-core?

I'd like to hear the community's thoughts on this.

Kind regards,
Thomas Perrot

Signature · 3 lines
Thomas Perrot, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
#1 lore raw
Quoted 11 lines · Thomas Perrot via lists.yoctoproject.org

Hi,

Currently, OP-TEE support is maintained in the meta-arm layer. However, OP-TEE is now being adopted by non-ARM platforms as well, notably RISC- V.

Given this broader adoption, would it make sense to move the OP-TEE recipes from meta-arm to oe-core?

I'd like to hear the community's thoughts on this.

Copying in the meta-arm list.

My immediate thought on this is “would the riscv machines actually use the same recipes” or is there enough forking and vendor branches happening that whilst in theory everyone is using OP-TEE, they’re not all using the _same_ optee.

I’m not against moving genuinely shared recipes somewhere common, but I do think verifying this will actually happen is important.

meta-arm tends to have several versions of optee at once for good reason… (currently one, but about to be two)

Ross

#2 lore raw
Quoted 21 lines · Ross Burton via lists.yoctoproject.org
Quoted 11 lines · Thomas Perrot via lists.yoctoproject.org

Hi,

Currently, OP-TEE support is maintained in the meta-arm layer. However, OP-TEE is now being adopted by non-ARM platforms as well, notably RISC- V.

Given this broader adoption, would it make sense to move the OP-TEE recipes from meta-arm to oe-core?

I'd like to hear the community's thoughts on this.

Copying in the meta-arm list.

My immediate thought on this is “would the riscv machines actually use the same recipes” or is there enough forking and vendor branches happening that whilst in theory everyone is using OP-TEE, they’re not all using the _same_ optee.

Quoted 7 lines

I’m not against moving genuinely shared recipes somewhere common, but I do think verifying this will actually happen is important.

meta-arm tends to have several versions of optee at once for good reason… (currently one, but about to be two)

I think its a good idea, but Ross's point is good too. If optee is forked for every architecture that can not be a good thing. However, if we can get qemuarm64 and qemuriscv64 based machines use an upstream version reliably, we might be able to even help upstream to keep things sane atleast for emulated machine architecture, similar to u-boot.

Quoted 13 lines

Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#66179):
https://lists.yoctoproject.org/g/yocto/message/66179
Mute This Topic: https://lists.yoctoproject.org/mt/117397331/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 12 lines · Khem Raj via lists.yoctoproject.org
Quoted 9 lines · Ross Burton via lists.yoctoproject.org
Quoted 7 lines · Thomas Perrot via lists.yoctoproject.org

Hi,

Currently, OP-TEE support is maintained in the meta-arm layer. However, OP-TEE is now being adopted by non-ARM platforms as well, notably RISC- V.

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

Given this broader adoption, would it make sense to move the OP-TEE recipes from meta-arm to oe-core?

I'd like to hear the community's thoughts on this.

I would be supportive of idea to move upstream aligned OP-TEE recipes to OE core which can be built in an architecture neutral way.

Quoted 7 lines
Quoted 7 lines

Copying in the meta-arm list.

My immediate thought on this is “would the riscv machines actually use the same recipes” or is there enough forking and vendor branches happening that whilst in theory everyone is using OP-TEE, they’re not all using the _same_ optee.

Agree, I rarely see OP-TEE and TF-A recipes being reused by various vendor BSP layers. There is enough forking there for sure but the other reason is that vendor BSP layer maintainers don't typically want to depend on meta-arm but only OE core. This typically causes the vendor BSPs to just copy TF-A and OP-TEE recipes rather than using overrides.

Not sure what's the standard practice that OE/Yocto community would recommend here to avoid duplication.

BTW, compilation for RISC-V can be referred here [1].

[1] https://github.com/OP-TEE/optee_os/blob/master/.github/workflows/ci.yml#L331

Quoted 7 lines
Quoted 7 lines

I’m not against moving genuinely shared recipes somewhere common, but I do think verifying this will actually happen is important.

meta-arm tends to have several versions of optee at once for good reason… (currently one, but about to be two)

Quoted 6 lines

I think its a good idea, but Ross's point is good too. If optee is forked for every architecture that can not be a good thing. However, if we can get qemuarm64 and qemuriscv64 based machines use an upstream version reliably, we might be able to even help upstream to keep things sane atleast for emulated machine architecture, similar to u-boot.

That's right, getting the OP-TEE recipes in OE core would provide better chances of cross-architecture reuse following the U-Boot example.

Although I would have hoped full boot stack including TF-A recipes to be in OE-core for emulated machines but not sure if that's really meta-arm maintainers are looking forward too.

-Sumit

Quoted 15 lines
Quoted 5 lines

Ross

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6866): https://lists.yoctoproject.org/g/meta-arm/message/6866
Mute This Topic: https://lists.yoctoproject.org/mt/117403356/9266292
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw
In reply to Khem Raj

Hello,

Quoted 38 lines · Khem Raj via lists.yoctoproject.org
Quoted 24 lines · Ross Burton via lists.yoctoproject.org
Quoted 4 lines · Thomas Perrot via lists.yoctoproject.org

Hi,

Currently, OP-TEE support is maintained in the meta-arm layer.

However,

Quoted 1 line

OP-TEE is now being adopted by non-ARM platforms as well, notably

RISC-

Quoted 3 lines

V.

Given this broader adoption, would it make sense to move the OP-

TEE

Quoted 3 lines

recipes from meta-arm to oe-core?

I'd like to hear the community's thoughts on this.

Copying in the meta-arm list.

My immediate thought on this is “would the riscv machines actually use the same recipes” or is there enough forking and vendor branches happening that whilst in theory everyone is using OP-TEE, they’re not all using the _same_ optee.

Quoted 7 lines

I’m not against moving genuinely shared recipes somewhere common, but I do think verifying this will actually happen is important.

meta-arm tends to have several versions of optee at once for good reason… (currently one, but about to be two)

Quoted 7 lines

I think its a good idea, but Ross's point is good too. If optee is forked for every architecture that can not be a good thing. However, if we can get
qemuarm64 and qemuriscv64 based machines use an upstream version reliably, we might be able to even help upstream to keep things sane atleast for emulated machine architecture, similar to u-boot.

I agree with this approach. It's worth noting that OP-TEE upstream already runs their test suite (xtest) on QEMU. This gives us confidence that the upstream version works reliably on emulated machines.

Starting with qemuarm64 and qemuriscv64 support in oe-core using upstream OP-TEE would be a reasonable first step, leaving vendor- specific versions and hardware-specific configurations in their respective layers.

Kind regards,
Thomas Perrot

Quoted 15 lines
Quoted 3 lines

Ross

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#66180):
https://lists.yoctoproject.org/g/yocto/message/66180
Mute This Topic: https://lists.yoctoproject.org/mt/117397331/5443093
Group Owner: [email protected] Unsubscribe:
https://lists.yoctoproject.org/g/yocto/unsub [[email protected]
]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Thomas Perrot, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
#5 lore raw

Hi Thomas,

Could this proposal be sent to the OE-core mailing list? It's probably a bit late for the next LTS, but it doesn't hurt to try.

Jose

Thomas Perrot via lists.yoctoproject.org <thomas.perrot= [email protected]> escreveu (terça, 3/02/2026 à(s) 16:29):

Quoted 82 lines

Hello,

On Thu, 2026-01-22 at 09:22 -0800, Khem Raj via lists.yoctoproject.org wrote:

On Thu, Jan 22, 2026 at 9:05 AM Ross Burton via lists.yoctoproject.org <[email protected]> wrote:

Quoted 11 lines · Thomas Perrot via lists.yoctoproject.org

Hi,

Currently, OP-TEE support is maintained in the meta-arm layer. However, OP-TEE is now being adopted by non-ARM platforms as well, notably RISC- V.

Given this broader adoption, would it make sense to move the OP-TEE recipes from meta-arm to oe-core?

I'd like to hear the community's thoughts on this.

Copying in the meta-arm list.

My immediate thought on this is “would the riscv machines actually use the same recipes” or is there enough forking and vendor branches happening that whilst in theory everyone is using OP-TEE, they’re not all using the _same_ optee.

I’m not against moving genuinely shared recipes somewhere common, but I do think verifying this will actually happen is important.

meta-arm tends to have several versions of optee at once for good reason… (currently one, but about to be two)

I think its a good idea, but Ross's point is good too. If optee is forked for every architecture that can not be a good thing. However, if we can get qemuarm64 and qemuriscv64 based machines use an upstream version reliably, we might be able to even help upstream to keep things sane atleast for emulated machine architecture, similar to u-boot.

I agree with this approach. It's worth noting that OP-TEE upstream already runs their test suite (xtest) on QEMU. This gives us confidence that the upstream version works reliably on emulated machines.

Starting with qemuarm64 and qemuriscv64 support in oe-core using upstream OP-TEE would be a reasonable first step, leaving vendor-specific versions and hardware-specific configurations in their respective layers.

Kind regards,
Thomas Perrot

Ross

--

Thomas Perrot, Bootlin
Embedded Linux and kernel engineeringhttps://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#66212):
https://lists.yoctoproject.org/g/yocto/message/66212
Mute This Topic: https://lists.yoctoproject.org/mt/117397331/5052612
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Best regards,

José Quaresma
#6 lore raw
In reply to Ross Burton

Hi,
I would like to add to this point that since the branches aren't gonna be shared (vendor specific or vendor agnostic), I feel we should first choose the suitable architecture implementation first where the base ISA is shared across many platforms (probably RV64* or RV32*)and then list out probable steps how OPTEE should be ported to risc-v.

#7 lore raw
In reply to Thomas Perrot

I had thought that OP-TEE can only work on ARM processors since it relies on the TrustZone h/w. For intel/AMD you have TPM and for something like powerpc you have CAAM.

Cheers!!

Quoted 29 lines · Thomas Perrot via lists.yoctoproject.org

Hi,

Currently, OP-TEE support is maintained in the meta-arm layer. However, OP-TEE is now being adopted by non-ARM platforms as well, notably RISC- V.

Given this broader adoption, would it make sense to move the OP-TEE recipes from meta-arm to oe-core?

I'd like to hear the community's thoughts on this.

Kind regards,
Thomas Perrot
--
Thomas Perrot, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#66178):
https://lists.yoctoproject.org/g/yocto/message/66178
Mute This Topic: https://lists.yoctoproject.org/mt/117397331/9366835
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 5 lines
"To err is human, to forgive is not company policy."

John Dowd
Contract - Software Developer
Cell: (613)316-7884